package com.xiaobaibai.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaobaibai.dao.DistributionUserDao;
import com.xiaobaibai.entity.DistributionUser;
import com.xiaobaibai.service.IDistributionPayService;
import com.xiaobaibai.service.IDistributionRecordingService;
import com.xiaobaibai.service.IDistributionUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author xiaobaibai
 * @since 2020-11-23
 */
@Service
public class DistributionUserServiceImpl extends ServiceImpl<DistributionUserDao, DistributionUser> implements IDistributionUserService {

    @Override
    public List<Integer> getSubordinates(Integer userId) {
        return this.baseMapper.getSubordinates(userId);
    }
}
